<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ViewModels="clr-namespace:ScrumSprintMonitor.Modules.BuildMonitor.ViewModels">

	<DataTemplate DataType="{x:Type ViewModels:FailedBuildRequesterViewModel}">
		<Border>
			<Border.Style>
				<Style TargetType="{x:Type Border}">
					<Setter Property="Visibility" Value="Visible" />

					<Style.Triggers>
						<DataTrigger Binding="{Binding Path=IsLastBuildBroken}" Value="False">
							<Setter Property="Visibility" Value="Collapsed" />
						</DataTrigger>
					</Style.Triggers>
				</Style>
			</Border.Style>
			<Border.OpacityMask>
				<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
					<GradientStop Offset="0.5" Color="#FFFFFFFF" />
					<GradientStop Offset="1.0" Color="#3FFFFFFF" />
				</LinearGradientBrush>
			</Border.OpacityMask>

			<Grid>
				<Border CornerRadius="10" Background="{Binding BackgroundBrush}">
					<Border.Effect>
						<BlurEffect Radius="18" RenderingBias="Quality" />
					</Border.Effect>
				</Border>

				<Grid Margin="0,20">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="10*" />
						<ColumnDefinition Width="60*" />
						<ColumnDefinition Width="10*" />
						<ColumnDefinition Width="10*" />
					</Grid.ColumnDefinitions>
					<Grid.RowDefinitions>
						<RowDefinition Height="*" />
						<RowDefinition Height="Auto" />
					</Grid.RowDefinitions>

					<Viewbox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2">
						<TextBlock Text="{Binding RequestedFor, StringFormat='Last build requested by {0}.'}" />
					</Viewbox>

					<!--<Viewbox Grid.Column="2" Grid.Row="1">
                        <TextBlock Text="{Binding BuildTimeStamp, StringFormat='at {0}', Converter={StaticResource DateTimeValueConverter}, ConverterParameter=G}" HorizontalAlignment="Right" />
                    </Viewbox>-->
				</Grid>
			</Grid>
		</Border>
	</DataTemplate>
</ResourceDictionary>